<?php
$shop = new Shop();
$shop->checkUser();//检查用户合法性，防止攻击

if(isset($_POST['del'])){
	$shop->closeOrder($_POST['del']);
}

$order = $shop->getOrderByUser('complete');
//var_dump($order[0]);
?>